<div class="col-sm-12 col-md-12" ng-show="view == 0">

    <div class="row">
        <div class="col-sm-12 col-md-12">
            <form class="form-custom clearfix">
                <div class="col-sm-3 col-md-3">
                    <label>数据集名称</label>   
                    <input class="form-control"  ng-model="params.dataSetName "  type="text" placeholder="请输入数据A、数据B、目标数据名称"/>
                </div>     
                <div class="col-sm-2 col-md-2">
                    <label>整合状态</label>
                    <select select2 class="form-control" ng-model="params.opStats" ng-options="item.id as item.name for item in stateType">
                    	<option value="">请选择</option>
                    </select>
                </div>   
                <div class="col-sm-3 col-md-3">
                    <label>操作日期</label>
                    <div data-datetimepicker range start="params.startTime" end="params.endTime"></div>
                </div>        
                <div class="col-sm-4 col-md-4">
                    <label>&nbsp;</label>               
                    <button class="btn btn-custom" type="submit" ng-click="refresh('first',true)">查询</button>
                    <button class="btn btn-custom" type="button" ng-click="createMerge()">设置整合</button>
                </div>
            </form>
        </div>
    </div>

    <table class="table table-striped table-bordered table-condensed index-center  table-costom">
        <thead>
        <tr>
            <th>序号</th>    
            <th>数据A名称</th>
            <th style="width:70px;">A数据量</th>
            <th>数据B名称</th>
            <th style="width:70px;">B数据量</th>
            <th>结果数据名称 </th>
            <th style="width:90px;">结果数据量</th>
            <th style="width:80px;">整合状态</th>
            <!--th>操作人</th>-->
            <th style="width:120px;">操作时间</th>
            <th style="width:86px;">操作</th>
        </tr>
        </thead>   
         <tbody>
         <tr class="rowlink" ng-repeat="item in limitArr">      
            <td>{{$index+1+current*limit}}</td>
	            <td>{{item.set1Name}}</td>                  
	            <td>{{item.dataSet1RowCnt    }}</td>                      
	            <td>{{item.set2Name }}</td>        
	             <td>{{item.dataSet2RowCnt    }}</td>  
	            <td>{{item.resultSetName  }}</td>             
	             <td>{{item.resultDateSetRowCnt    }}</td>  
	             <td>{{item.opStats|DP_merge}}</td>   
	            <!--<td>{{item.userName}}</td>-->
	            <td>{{item.createDate | date : 'yyyy-MM-dd HH:mm'  }}</td>   
            <td>
                <!-- <a href="javascript:" ng-show="item.opStats=='failure'">重新执行</a>-->
                <!--<a href="javascript:" ng-click="edit(item);">修改</a>-->
                <a href="javascript:" ng-show="item.opStats=='failure'||item.opStats=='init'" data-toggle="modal" ng-click="removeInteLog(item)" data-target="#remove">删除</a>
                <a href="javascript:" ng-show="item.opStats=='finished'"  ng-click="openDetail(item)">查看</a>
            </td>
        </tr>
        </tbody>
    </table>

     <div 
        data-remote-paging="pager"
        data-refresh="refresh"
        data-current="current"
        data-total="total"
        data-data="limitArr"
        data-limit="limit"
        data-params="params"
        ></div>

    <!-- 删除对话框 -->
    <div class="modal fade" id="remove" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title">删除数据</h4>
                </div>
                <div class="modal-body">
                    确认要删除此数据么？
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-danger" data-dismiss="modal" ng-click="confirmRemove()">确认删除</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div><!-- /.modal -->
</div>

<div view-data-set="detail"></div>

<div ng-include="'templates/dataIntegration/integration-extends.html'"></div>